package com.zhl.gradledemo.model;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 消息记录
 */
@Getter
@Setter
@Table(name = "broker_message_log")
public class BrokerMessageLog {

    /**消息id*/
    @Id
    @Column(name = "message_id")
    private String messageId;
    /**消息内容*/
    @Column
    private String message;
    /**重试次数*/
    @Column(name = "try_count")
    private Integer tryCount;
    /**消息投递状态 0投递中 1投递成功 2投递失败*/
    @Column
    private String status;
    /**下次重试时间*/
    @Column(name = "next_retry")
    private Date nextRetry;
    /**下次重试时间*/
    @Column(name = "create_time")
    private Date createTime;
    /**下次重试时间*/
    @Column(name = "update_time")
    private Date updateTime;
}
